<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center zufangdanJuList_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub zufangdanJuList_fd0_0'>
					<view class='flex flex-wrap align-center zufangdanJuList_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  zufangdanJuList_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='zufangdanJuList_fd0_0_c1_c0'>租房单据</text>
					</view>
					<view class='flex flex-wrap align-center justify-end zufangdanJuList_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center">
				<view>
					<benben-flex-tabs class-name='zufangdanJuList_benbenTabsfd1_0' v-model="tabsTypefd1_0"
						ref="benben_tabsfd1_0" select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0"
						:open-title-type='false' :open-sticky='true' :top='0' :is-show-content='false'
						:scrollspy='false' :tabs-info.sync="tabsInfofd1_0" @change="changetab">

						<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
							class="benben-tabs" style="width:750rpx" :scroll-x="true"
							:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
							<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
								<view id="benben_tabsfd1_0-title"
									class="benben-tabs-title flex flex align-center justify-around">
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '0', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '0'" :id="`benben_tabsfd1_0-title-item-${'0'}`">
										<text>全部</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '1', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '1'" :id="`benben_tabsfd1_0-title-item-${'1'}`">
										<text>已预定</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '3', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '3'" :id="`benben_tabsfd1_0-title-item-${'3'}`">
										<text>租赁中</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '4', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '4'" :id="`benben_tabsfd1_0-title-item-${'4'}`">
										<text>转租中</text>
									</view>
									<view
										:class="{ 'checkTitlefd1_0': tabsTypefd1_0 == '5', 'flex flex-wrap align-center': true }"
										@tap="tabsTypefd1_0 = '5'" :id="`benben_tabsfd1_0-title-item-${'5'}`">
										<text>已取消</text>
									</view>
								</view>
								<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth ,}"
									id="benben_tabsfd1_0-line"
									class="benben-tabs-line flex benben-flex-tabs-line zufangdanJuList_linefd1_0">
								</view>
							</view>
						</scroll-view>

					</benben-flex-tabs>

				</view>
			</view>

			<!---flex布局flex布局结束-->
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center zufangdanJuList_flex_2">
				<view class='flex flex-wrap align-center zufangdanJuList_fd2_0' v-for="(item,index) in houseArr"
					:key="index" @tap.stop="handleJumpDiy" data-type="navigateTo"
					:data-url="`/pages/mine/rentalPropertydetails/rentalPropertydetails?aid=${item.aid}&zufang=1`">
					<view class='flex flex-wrap align-center zufangdanJuList_fd2_0_c0'>
						<text class='zufangdanJuList_fd2_0_c0_c0'>租房倒计时：315天</text>
					</view>
					<view class='flex flex-wrap align-center zufangdanJuList_fd2_0_c1'>
						<view class='flex align-stretch zufangdanJuList_fd2_0_c1_c0'>
							<view class='flex flex-wrap align-center zufangdanJuList_fd2_0_c1_c0_c0'>
								<view
									class='flex flex-wrap align-center justify-center zufangdanJuList_fd2_0_c1_c0_c0_c0'>
									<text
										class='zufangdanJuList_fd2_0_c1_c0_c0_c0_c0'>{{item.housecate_name?item.housecate_name:'住宅'}}</text>
								</view>
								<image class='zufangdanJuList_fd2_0_c1_c0_c0_c1' mode="aspectFit" :src='item.house_cover'>
								</image>
								<view
									class='flex flex-wrap align-center justify-center zufangdanJuList_fd2_0_c1_c0_c0_c2'>
									<text class='zufangdanJuList_fd2_0_c1_c0_c0_c2_c0'>{{item.state_name?item.state_name:'租赁中'}}</text>
								</view>
							</view>
							<view class='flex flex-direction flex-wrap align-stretch justify-between'>
								<view class='flex flex-direction flex-wrap align-stretch'>
									<text
										class='zufangdanJuList_fd2_0_c1_c0_c1_c0_c0'>{{item.house_address}}{{item.building_number}}</text>
									<text class='zufangdanJuList_fd2_0_c1_c0_c1_c0_c1'>{{item.house_city}} 丨2室1厅1卫丨78㎡</text>
								</view>
								<view class='flex flex-wrap align-center zufangdanJuList_fd2_0_c1_c0_c1_c1'>
									<text class='zufangdanJuList_fd2_0_c1_c0_c1_c1_c0'>{{item.price}}</text>
									<text class='zufangdanJuList_fd2_0_c1_c0_c1_c1_c1'>元/月</text>
								</view>
							</view>
						</view>
					</view>
				</view>
				<view v-if="houseArr.length == 0" class="flex align-center justify-center" style="width: 100%;">
					<fu-empty-ui></fu-empty-ui>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabsTypefd1_0": "0",
				houseArr: []
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			this.getSearchList()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			changetab(){
				this.getSearchList()
			},
			getSearchList() {
				this.$api.post('/m6752/677e409964c69',{
					state:this.tabsTypefd1_0 == '0'?'':this.tabsTypefd1_0
				}).then(res => {
					if (res.data.code == 1) {
						this.houseArr = res.data.data.data
						console.log(this.houseArr);
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.zufangdanJuList_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.zufangdanJuList_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 50rpx;
	}

	.zufangdanJuList_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.zufangdanJuList_fd0_0_c0 {
		width: 120rpx;
	}

	.zufangdanJuList_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.zufangdanJuList_linefd1_0 {
		background: #FC5F80;
		width: 30rpx;
		height: 6rpx;
		top: 75rpx;
		background-size: 100% auto !important;
		border-radius: 3rpx 3rpx 3rpx 3rpx;
	}

	.checkTitlefd1_0 {
		font-weight: 500 !important;
		font-size: 30rpx !important;
		color: #333 !important;
		background-color: rgba(255, 255, 255, 1) !important;
	}

	::v-deep .zufangdanJuList_benbenTabsfd1_0 {
		background: #fff;
		width: 750rpx;
		height: 90rpx;
		white-space: nowrap;
		text-align: center;
		font-weight: 400;
		font-size: 30rpx;
		color: #999999;
	}

	.zufangdanJuList_flex_2 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.zufangdanJuList_fd2_0_c3_c0_c0 {
		color: #333333;
		font-size: 24rpx;
		font-weight: 400;
	}

	.zufangdanJuList_fd2_0_c3_c0 {
		background: #F8F8F8;
		border-radius: 30rpx 30rpx 30rpx 30rpx;
		width: 164rpx;
		height: 60rpx;
		margin: 0rpx 0rpx 0rpx 20rpx;
	}

	.zufangdanJuList_fd2_0_c2_c0 {
		background: #FC5F80;
		border-radius: 30rpx 30rpx 30rpx 30rpx;
		width: 164rpx;
		height: 60rpx;
		margin: 0rpx 0rpx 0rpx 20rpx;
	}

	.zufangdanJuList_fd2_0_c2 {
		width: 100%;
		margin: 28rpx 0rpx 0rpx 0rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0_c1_c1_c1 {
		font-size: 24rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0_c1_c1_c0 {
		font-size: 32rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0_c1_c1 {
		color: rgba(234, 55, 39, 1);
		font-weight: 600;
	}

	.zufangdanJuList_fd2_0_c1_c0_c1_c0_c1 {
		color: #666666;
		font-size: 22rpx;
		font-weight: 400;
	}

	.zufangdanJuList_fd2_0_c1_c0_c1_c0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 500;
		margin: 0rpx 0rpx 16rpx 0rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0_c2_c0 {
		color: #FFFFFF;
		font-size: 24rpx;
		font-weight: 400;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0_c2 {
		background: rgba(0, 0, 0, 0.45);
		width: 100%;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
		height: 48rpx;
		position: absolute;
		bottom: 0rpx;
		right: 0rpx;
		left: 0rpx;
		z-index: 1;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0_c1 {
		width: 100%;
		height: 100%;
		border-radius: 16rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0_c0_c0 {
		color: #FFFFFF;
		font-size: 22rpx;
		font-weight: 400;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0_c0 {
		background: #2E66FF;
		border-radius: 16rpx 0rpx 16rpx 0rpx;
		width: 86rpx;
		height: 36rpx;
		position: absolute;
		left: 0rpx;
		top: 0rpx;
		z-index: 1;
	}

	.zufangdanJuList_fd2_0_c1_c0_c0 {
		width: 216rpx;
		height: 192rpx;
		border-radius: 16rpx;
		position: relative;
		margin: 0rpx 20rpx 0rpx 0rpx;
	}

	.zufangdanJuList_fd2_0_c1_c0 {
		border-bottom: 1px solid rgba(238, 238, 238, 1);
		width: 100%;
		padding: 0rpx 0rpx 32rpx 0rpx;
	}

	.zufangdanJuList_fd2_0_c1 {
		width: 100%;
		padding: 24rpx 0rpx 0rpx 0rpx;
	}

	.zufangdanJuList_fd2_0_c0_c0 {
		color: #666666;
		font-size: 24rpx;
		font-weight: 400;
	}

	.zufangdanJuList_fd2_0_c0 {
		border-bottom: 1px solid rgba(238, 238, 238, 1);
		width: 100%;
		padding: 0rpx 0rpx 24rpx 0rpx;
	}

	.zufangdanJuList_fd2_0 {
		background: #FFFFFF;
		width: 100%;
		margin: 24rpx 0rpx 0rpx 0rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 24rpx 24rpx 32rpx 24rpx;
	}
</style>